package ly.jobdu;

public class Q1059ABC {
	public static void main(String[] args) {
		abc();
	}

	public static void abc() {
		int a, b, c = 0;
		for (a = 0; a < 10; a++) {
			for (b = 0; b < 10; b++) {
				for (c = 0; c < 10; c++) {
					int abc = 0;
					int bcc = 0;
					if (a != 0) {
						abc = a * 100 + b * 10 + c;
					}
					if (b != 0) {
						bcc = b * 100 + c * 10 + c;
					}

					if (abc + bcc == 532) {
						System.out.println(a + " " + b + " " + c);
					}
				}
			}
		}
	}
}
